import Vue from 'vue' //引入Vue

import Router from 'vue-router' //引入vue-router

Vue.use(Router) //Vue全局使用Router

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/index'
        },
        {
            path: '/index',
            name: "index",
            meta: {
                title: '登录'
            },
            component: () => import("@/view/index"),
        },
        {
            path: '/home',
            name: 'home',
            meta: {
                title: '首页'
            },
            component: () => import("@/view/home"),
        },
        {
            path: '/company',
            name: 'company',
            meta: {
                title: '我是企业'
            },
            component: () => import("@/view/company"),
        },
        {
            path: '/courts',
            name: 'courts',
            meta: {
                title: '公检法'
            },
            component: () => import("@/view/courts"),
        },
        {
            path: '/lawer',
            name: 'lawer',
            meta: {
                title: '我是律师'
            },
            component: () => import("@/view/lawer"),
        },
        {
            path: '/500',
            name: '500',
            meta: {
                title: '500'
            },
            component: () => import("@/view/empty"),
        },
        {
            path: '/question',
            name: 'question',
            meta: {
                title: '常见问题'
            },
            component: () => import("@/view/question"),
        },
        {
            path: '/login',
            name: 'login',
            title: '用户登录',
            component: () => import("@/view/login"),
        },
        {
            path: '/stats',
            name: 'stats',
            meta: {
                title: '数据统计'
            },
            component: () => import("@/view/stats"),
        },
        {
            path: '/showInner',
            name: 'showInner',
            meta: {
                title: '查看内档'
            },
            component: () => import("@/view/showInner"),
        },
        {
            path: '/showBase',
            name: 'showBase',
            meta: {
                title: '查看档案'
            },
            component: () => import("@/view/showBase"),
        },
        {
            path: '/list',
            name: 'list',
            meta: {
                title: '历史查询'
            },
            component: () => import("@/view/list"),
        },
        {
            path: '/realAuth',
            name: 'realAuth',
            meta: {
                title: '人脸识别'
            },
            component: () => import("@/view/realAuth"),
        },
        {
            path: '/patch',
            name: 'patch',
            meta: {
                title: '材料补齐补正'
            },
            component: () => import("@/view/patch"),
        },
        {
            path: '/realAuthPc',
            name: 'realAuthPc',
            meta: {
                title: '政务服务网申请人脸识别'
            },
            component: () => import("@/view/realAuthPc"),
        },
    ]

})
